package com.sh.data.engine.application.model.request.integration;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author : changkong
 * @date : 2022/3/16
 */
@Data
@Builder
@Schema(description = "获取建表语句")
@NoArgsConstructor
@AllArgsConstructor
public class GetCreateTableDDLRequest {

    @Schema(description = "选择的数据源id")
    @NotNull
    private Long dsId;

    @Schema(description = "预览时输入的字段名称列表")
    @NotNull
    private List<String> fields;

    @Schema(title = "hive数据源选择是否支持富文本", description = "0不支持, 1支持")
    private Integer isSupportRtf;
}
